package com.example.liteflow.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.liteflow.entity.Interest;
import com.example.liteflow.mapper.InterestMapper;
import com.example.liteflow.service.InterestService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDateTime;

/**
 * 兴趣服务实现类
 *
 * @author haijin
 * @since 2024-01-01
 */
@Slf4j
@Service
public class InterestServiceImpl extends ServiceImpl<InterestMapper, Interest> implements InterestService {

    @Transactional(rollbackFor = Exception.class)
    @Override
    public void saveInterest(Interest interest) {
        this.save(interest);
        int i = 1 / 0;
    }
}
